package com.neugh.service.impl;

import com.neugh.entity.Repair;
import com.neugh.mapper.RepairMapper;
import com.neugh.service.RepairService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author sot
 * @since 2020-06-18
 */
@Service
public class RepairServiceImpl extends ServiceImpl<RepairMapper, Repair> implements RepairService {

    @Override
    public boolean addRep(String repairtContent, String repairImg, Integer userId) {
        return this.baseMapper.addRep(repairtContent,repairImg,userId);
    }

    @Override
    public List<Repair> selRepair(Integer userId) {
        return this.baseMapper.selRepair(userId);
    }
}
